/*
 * esfera.h
 *
 *  Created on: 17/02/2013
 *      Author: alex
 */

#ifndef ESFERA_H_
#define ESFERA_H_

#include "RayTracer.h"

// Datos específicos de una Esfera
typedef struct {
	long double Xc, Yc, Zc, R, R2;
	long double Gx, Gy, Gz;
	long double Nx, Ny, Nz;
	long double Jx, Jy, Jz, D;
} esfera_t;


long double IntEsfera(long double Xe, long double Ye, long double Ze,
                      long double Xd, long double Yd, long double Zd,
                      long double Xc, long double Yc, long double Zc,
                      long double R2, objeto_t* objeto);

long double* NormalEsfera(long double Xi, long double Yi, long double Zi,
						  long double Xc, long double Yc, long double Zc,
						  long double R);

#endif /* ESFERA_H_ */

